import * as React from '../expressExt/MyReact'
import {Request} from "express";


export const Layout = {

    title: "",

    startTime: Date.now(),

    body: (req: Request, content: HTMLElement) =>
        ( "<!DOCTYPE html>" +
        <html>
        <head>
            <title>
                {Layout.title}
            </title>
            <link rel="stylesheet" href="/css/style.css"/>
            <script src="/js/promise.amd.min.js"/>
            <script src={"/js/all.js?v=" + Layout.startTime}/>
            <script>window.define=void 0</script>
            <body>
            {content}
            </body>
        </head>
        </html>),
}
